package org.jeecg.demo.wx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


@Slf4j
@Data
@TableName("rl_schedule")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="rl_schedule对象", description="rl_schedule")
@NoArgsConstructor
public class RlSchedule implements Serializable {
    private static final long serialVersionUID = 1L;

	/**企业日历日程表Id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "企业日历日程表Id")
    private Integer id;
    /**任务表id*/
    @ApiModelProperty(value = "任务表id， 日程类型没有")
    private Integer taskId;
	/**用户id*/
	@Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
    private String userId;
    /**用户名称*/
    @Excel(name = "用户名称", width = 15)
    @ApiModelProperty(value = "用户名称")
    private String userName;
	/**标题*/
	@Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
    private String title;
	/**内容*/
	@Excel(name = "内容", width = 15)
    @ApiModelProperty(value = "内容")
    private String content;
	/**类型*/
	@Excel(name = "类型", width = 15)
    @ApiModelProperty(value = "类型")
    private String scheduleType;
	/**紧急等级 10-一般；20-重要*/
	@Excel(name = "紧急等级", width = 15)
    @ApiModelProperty(value = "紧急等级")
    @Dict(dicCode = "urgent_level")
    private String level;
	/**开始时间*/
	@Excel(name = "开始时间", width = 15, format = "yyyy-MM-dd HH:mm")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "开始时间")
    private Date beginTime;
	/**结束时间*/
	@Excel(name = "结束时间", width = 15, format = "yyyy-MM-dd HH:mm")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "结束时间")
    private Date endTime;
	/**提醒时间*/
	@Excel(name = "提醒时间", width = 15, format = "yyyy-MM-dd HH:mm")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "提醒时间")
    private Date remindTime;
	/**是否提醒 0-否；1-是*/
	@Excel(name = "是否提醒 0-否；1-是", width = 15)
    @ApiModelProperty(value = "是否提醒 0-否；1-是")
    @Dict(dicCode = "yn")
    private String isRepeat;
	/**跳过周末 0-否；1-是*/
	@Excel(name = "跳过周末 0-否；1-是", width = 15)
    @ApiModelProperty(value = "跳过周末 0-否；1-是")
    @Dict(dicCode = "yn")
    private String isWeekend;
	/**跳过节假日 0-否；1-是*/
	@Excel(name = "跳过节假日 0-否；1-是", width = 15)
    @ApiModelProperty(value = "跳过节假日 0-否；1-是")
    @Dict(dicCode = "yn")
    private String isHoliday;
	/**是否完成 10未读；20-已读；30-完成*/
	@Excel(name = "是否完成 10未读；20-已读；30-完成；40-申请延期", width = 15)
    @ApiModelProperty(value = "是否完成 10未读；20-已读；30-完成；40-申请延期；60-超期")
    @Dict(dicCode = "is_complete")
    private String isComplete;
    /**任务状态 10-已查收；20-已完成；30-申请延期*/
    @Excel(name = "任务状态 10-日程；20-任务", width = 15)
    @ApiModelProperty(value = "10-日程；20-任务")
    @Dict(dicCode = "task_state")
    private String state;
    /**是否派发 1-取消；0-显示*/
    @Excel(name = "是否显示 1-取消；0-显示", width = 15)
    @ApiModelProperty(value = "是否显示 1-取消；0-显示")
    @Dict(dicCode = "del_flag")
    private String delFlag;
    /**文件名称*/
    @Excel(name = "文件名称", width = 15)
    @ApiModelProperty(value = "文件名称")
    private String fileName;
    /**文件路径*/
    @Excel(name = "文件路径", width = 15)
    @ApiModelProperty(value = "文件路径")
    private String filePath;
	/**相关文档*/
	@Excel(name = "相关文档", width = 15)
    @ApiModelProperty(value = "相关文档")
    private String document;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    /**地点*/
    @ApiModelProperty(value = "地点")
    private String address;
    /**OA数据*/
    @ApiModelProperty(value = "OA数据 0-否；1-是")
    private String isOa;
    /**钉钉日历id*/
    @ApiModelProperty(value = "钉钉日历id")
    private String dingId;
}
